﻿<UserControl x:Class="ICSharpCode.Data.Core.UI.UserControls.LoadingCircle"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
    <UserControl.Resources>
        <Storyboard x:Key="RenderDoubleAnimationStoryboard" Storyboard.TargetName="MainCanvas">
            <DoubleAnimation Storyboard.TargetProperty="(RenderTransform).(RotateTransform.Angle)" From="0" To="359"
					Duration="0:0:0.75" RepeatBehavior="Forever" />
        </Storyboard>
        <Storyboard x:Key="OpacityDoubleAnimationStoryboardToVisible" Storyboard.TargetName="MainCanvas">
            <DoubleAnimation Storyboard.TargetProperty="Opacity" To="1" Duration="0:0:0.5" FillBehavior="HoldEnd" />
        </Storyboard>
        <Storyboard x:Key="OpacityDoubleAnimationStoryboardToUnvisible" Storyboard.TargetName="MainCanvas" Completed="DeactivationCompleted">
            <DoubleAnimation Storyboard.TargetProperty="Opacity" To="0" Duration="0:0:0.5" FillBehavior="HoldEnd" />
        </Storyboard>
    </UserControl.Resources>
    <Canvas x:Name="MainCanvas" Opacity="0">
        <Canvas.RenderTransform>
            <RotateTransform x:Name="CanvasRotateTransformation" Angle="0" />
        </Canvas.RenderTransform>
        <Ellipse Stroke="White" x:Name="BackgroundEllipse" />
    </Canvas>
</UserControl>

